<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>点位管理</title>
    <link href="./js/layui/css/layui.css" rel="stylesheet" type="text/css" media="screen">
    <link href="./css/common.css" rel="stylesheet" type="text/css" media="screen">
    <script src="./js/layui/layui.js"></script>
    <script src="./js/lib/weapp-qrcode.js"></script>
    <script src="./js/lib/jquery-3.3.1.min.js"></script>
    <script src="../config.js" type="text/javascript"></script>
    <script src="./js/lib/jQuery.print.js"></script>
    <script src="./js/pointManage.js"></script>
</head>
<body class="white">
<div class="query" style="margin-top: 10px">
    <div class="layui-inline">
        <div class="layui-form">
            <div>
                巡检点位:
                <div class="layui-input-inline">
                    <input id="searchText" name="searchText" type="text" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    创建时间
                    <div class="layui-input-inline" >
                        <input type="text" class="layui-input" name="beginDate" id="beginDate">
                    </div>
                    至
                    <div class="layui-input-inline" >
                        <input type="text" class="layui-input" name="endDate" id="endDate">
                    </div>
                </div>
                <button class="layui-btn " lay-submit lay-filter="search" id="reload">搜索</button>

                <button class="layui-btn layui-btn-primary" onclick="reload()">重置</button>
                <button type="button" class="layui-btn add-btn" id="toAdd">
                    <i class="layui-icon layui-icon-add-1"></i> 新增
                </button>
            </div>
        </div>
    </div>

    <table class="layui-table" id="pointTable" lay-filter="pointTable"></table>
</div>


</body>
<div class="layui-main " style="clear: both;display: none " id="item_main">
    <button type="button" class="layui-btn add-btn" id="addItem">确定</button>
    <table class="layui-table" id="itemTable" lay-filter="itemTable"></table>
</div>
<div class="layui-main " style="clear: both;display: none " id="point_main">
    <div class="headlines-wrap">
        <div class="headlines layui-main">
            <div class="layui-form">
                <form class=" form-inline">
                    <input type="text" id="pointId" name="pointId" style="display: none;">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 100px">点位名称</label>
                        <div class="layui-input-inline"  >
                            <input type="text" id="pointName" name="pointName" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 100px">点位描述</label>
                        <div class="layui-input-inline"  >
                            <input type="text" id="pointDetail" name="pointDetail" lay-verify="required" autocomplete="off" class="layui-input">
                        </div>
                    </div>
<!--                    <div class="layui-form-item">-->
<!--                        <label class="layui-form-label" style="width: 100px">打卡方式</label>-->
<!--                        <div class="layui-input-inline" >-->
<!--                            <select name="pointInspectMethod" id="pointInspectMethod" lay-verify="required">-->
<!--                                <option value='0' selected>二维码</option>-->
<!--&lt;!&ndash;                                <option value='1'>电子读卡器</option>&ndash;&gt;-->
<!--                            </select>-->
<!--                        </div>-->
<!--                    </div>-->

<!--                    <div class="layui-form-item">-->
<!--                        <label class="layui-form-label" style="width: 100px">巡查时长(分钟)</label>-->
<!--                        <div class="layui-input-inline"  >-->
<!--                            <input type="text" id="pointInspectTime" name="pointInspectTime" lay-verify="required" autocomplete="off" class="layui-input">-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="layui-form-item">-->
<!--                        <label class="layui-form-label" style="width: 100px">误差时长(分钟)</label>-->
<!--                        <div class="layui-input-inline"  >-->
<!--                            <input type="text" id="pointInspectErrorTime" name="pointInspectErrorTime" lay-verify="required" autocomplete="off" class="layui-input">-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 100px">点位二维码</label>
                        <div class="layui-input-inline"  >
                            <input type="hidden" id="pointSystemInfo" name="pointSystemInfo" autocomplete="off" class="layui-input">
                        </div>
                        <button type="button" class="layui-btn" id="generateUUID">生成二维码</button>
                        <div style="margin-left: 40px"><img width="200" height="200" id="twoDemPic"> </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 100px">巡检项目</label>
                        <button type="button" class="layui-btn" id="toAddItem">
                            <i class="layui-icon">&#xe608;</i> 添加项目
                        </button>
                    </div>
                    <div class="layui-form-item">
                        <table class="layui-table" id="itemList" lay-filter="itemList"></table>
                    </div>
                    <div class="layui-form-item" style="margin-left: 20px">
                        <div class="layui-input-inline">
                            <button class="layui-btn" lay-submit lay-filter="addBtn" id="addBtn">确定</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div>
</html>